import Vue from "vue";
import Vuex from "vuex";
import app from "./modules/app";
import errorLog from "./modules/errorLog";
import getters from "./getters";
import tag from "./modules/tag";

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    userThemes: "DEFAULT",
    ifrmaeSign: false,
    pathName: "",
  },
  mutations: {
    //主题颜色
    setThemes(state, obj) {
      state.userThemes = "";
      state.userThemes = obj;
    },
    setIfrmaeSign(state, obj) {
      state.ifrmaeSign = obj;
    },
    setPathName(state, obj){
      state.pathName = obj;
    }
  },
  modules: {
    app,
    errorLog,
    tag
  },
  getters
});

export default store;
